//
//  GXLinkView.h
//  CarSalesMS_GCX
//
//  Created by Ssky on 2016/12/13.
//  Copyright © 2016年 Tony. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface GXLinkView : UIView

+ (instancetype)linkViewWithControllerEnum:(ViewControllerEnum)controllerEnum;

@property (nonatomic, assign) ViewControllerEnum controllerEnum;

@property (nonatomic, assign) BOOL isPrefix;//是否是tvPrefix，如果是那么就不设置3行

@property (nonatomic, assign) BOOL isNeedCreate;



///GXLinkView的最大高度
@property (nonatomic, assign) CGFloat maxHeight;
@property (nonatomic, assign) CGFloat maxWidth;

///数据源
@property (nonatomic, strong) NSArray<NSString *> *titles;

@property (nonatomic, strong) UIColor *bgColor;
@property (nonatomic, strong) UIColor *firstColor;

///依次设置每列的宽度
@property (nonatomic, strong) NSArray<NSNumber *> *colWidthArr;


///根据索引设置label元素的宽度
- (void)setWidth:(CGFloat)width forIndex:(NSInteger)index;

- (void)setTextAlignment:(NSTextAlignment)textAlignment forIndex:(NSInteger)index;

- (void)setFont:(UIFont *)font textColor:(UIColor *)textColor forIndex:(NSInteger)index;


















@end
